package com.jingkong.repository;

import com.jingkong.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserRepository extends JpaRepository<User,Long> {

    List<User> findByAgeGreaterThan(Integer age);

    List<User> findByAgeGreaterThanAndGender(Integer age,Integer gender);

}
